package com.hqyj.onlineExamination.modules.exam.dao;


import com.hqyj.onlineExamination.modules.exam.entity.PaperQuestion;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Options;
import org.springframework.stereotype.Repository;

@Mapper
@Repository
public interface PaperQuestionDao {

    @Insert("insert into exam_paper_question (paper_id, question_id) " +
            "values (#{paperId}, #{questionId})")
    @Options(useGeneratedKeys = true, keyColumn = "id", keyProperty = "id")
    void addPaperQuestionByPaperQuestion(PaperQuestion paperQuestion);

}
